﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" 
CodeBehind="InviteNTFriendly.aspx.cs" Inherits="Nivdal.InviteNTFriendly" Theme="SkinFile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:HiddenField ID="TeamIdHiddenField" runat="server" />
    <div class="basic_element">
    <div class="red_title">
        <asp:Label ID="TitleLabel" runat="server" Text="<%$ Resources:Resource, InviteNTFriendly_PageTitle %>" CssClass="white_title"></asp:Label>
    </div>

    
    <div class="padding5">
        <asp:Panel ID="InvitationPanel" runat="server">
            <asp:Label ID="InvitationDatesTitleLabel" runat="server" SkinID="InfoLabel"
            Text="<%$ Resources:Resource, ScheduleFriendly_ChooseMatchTime %>" ></asp:Label>
            <asp:DropDownList ID="GameTimeDDL" runat="server" DataSourceID="GameTimesSource" DataTextField="MatchTime"
             DataValueField="MatchTimeValue"></asp:DropDownList>
            <br /><br />
            <div class="NewsItemStyle">
            <asp:RadioButtonList ID="HomeAwayCheckBoxList" runat="server">                
                <asp:ListItem Text="<%$ Resources:Resource, Friendly_HomeMatch %>" Value="1" Selected="True"></asp:ListItem>
                <asp:ListItem Text="<%$ Resources:Resource, Friendly_AwayMatch %>" Value="0"></asp:ListItem>
            </asp:RadioButtonList>
            <br />
            <asp:RadioButtonList ID="CupRulesCheckBoxList" runat="server">
                <asp:ListItem Text="<%$ Resources:Resource, Friendly_NormalRules %>" Value="0" Selected="True"></asp:ListItem>
                <asp:ListItem Text="<%$ Resources:Resource, Friendly_CupRules %>" Value="1"></asp:ListItem>
            </asp:RadioButtonList>
            </div>
            <br /><br />
            <asp:Button ID="SendButton" runat="server" Text="<%$ Resources:Resource, Global_Send %>" CssClass="GreenSmallButtonStyle"
                 OnClick="SendInvitation" />
            <asp:SqlDataSource ID="GameTimesSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                SelectCommand="Nivdal_NTGetFriendlySlotsforTwoTeams" SelectCommandType="StoredProcedure">
            </asp:SqlDataSource>
         
        </asp:Panel>
        <asp:Panel ID="CannotInvitePanel" runat="server">
            <asp:Label ID="CannotInviteLabel" runat="server" Text="<%$ Resources:Resource, InviteNTFriendly_CannotInvite %>" SkinID="GridLabel"></asp:Label>
            <br /><br />
            <asp:HyperLink ID="BackToTeamLink" runat="server" Text="<%$ Resources:Resource, Global_TeamHomePage %>" SkinID="GreenTitleHyperLink"></asp:HyperLink>
        </asp:Panel>
    </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PageNamePlaceHolder" runat="server">
    <asp:Label ID="PageNameLabel" runat="server" Text="<%$ Resources:Resource, InviteNTFriendly_PageTitle %>"
        CssClass="PageNameContentStyle"></asp:Label>
</asp:Content>
